﻿namespace Cmn
{
    using System;
    using System.Web;
    using System.Web.UI.HtmlControls;

    public class Msg
    {
        public static void End()
        {
            HttpContext.Current.Response.End();
        }

        public static void Write(string msg)
        {
            HttpContext.Current.Response.Write(msg);
        }

        public static void Write(HtmlGenericControl control, string msg, bool isAdd)
        {
            if (isAdd)
            {
                control.InnerHtml = control.InnerHtml + msg;
            }
            else
            {
                control.InnerHtml = msg;
            }
        }
    }
}

